﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AAA.SerialPort.Printer
{
    public class SG085Command : DefaultCommand
    {
        public SG085Command()
        {
            SetCommand(RESET_PRINTER, new byte[] { 27, 64 });
            SetCommand(MOVE_LINE, new byte[] { 27, 100 });
            SetCommand(CHINESE_FONT_ON, new byte[] { 27, 64, 28, 87, 1 });
            SetCommand(CHINESE_FONT_OFF, new byte[] { 27, 64, 28, 87, 0 });
            SetCommand(OPEN_CASH_DRAWER1, new byte[] { 27, 112, 0, 50, 250 });            
            SetCommand(NEW_PAGE_CUT_RESERVE_1, new byte[] { 29, 86, 66 });
            SetCommand(CUT_RESERVE_1, new byte[] { 29, 86, 1 });
            SetCommand(FONT_SIZE_0, new byte[] { 27, 64, 27, 33, 0});
            SetCommand(FONT_SIZE_16, new byte[] { 27, 64, 27, 33, 16 });
            SetCommand(FONT_SIZE_32, new byte[] { 27, 64, 27, 33, 32 });
            SetCommand(FONT_SIZE_48, new byte[] { 27, 64, 27, 33, 48 });
        }
    }
}
